package cn.zhaozhiqi.remote.api;

import cn.zhaozhiqi.constants.Constants;
import cn.zhaozhiqi.remote.dto.LoginDto;
import cn.zhaozhiqi.remote.fallback.LoginFeignClientFallbackFactory;
import cn.zhaozhiqi.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = Constants.Remote.SERVICE_UAA,fallbackFactory = LoginFeignClientFallbackFactory.class)
public interface ILoginFeignClient {

    @PostMapping("/uaa/register")
    JSONResult register(@RequestBody LoginDto dto);
}
